<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
    <%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>
</head>
<body>
<form action="list" method="post">
文章标题:<input type="text" name="title" value="${qv.title}">
<select name="channelId">
<option value=" ">==请选择==</option>
<c:forEach items="${ch}" var="c">
<option value="${c.id}" ${qv.channelId==c.id?'selected':'' }>${c.name}</option>
</c:forEach>
</select>
<input type="submit" value="查询">
<table>
<tr>
<td>ID</td>
<td>标题</td>
<td>图片</td>
<td>所属频道</td>
<td>所属分类</td>
<td>内容</td>
</tr>
<c:forEach items="${pg.list}" var="a">
<tr>
<td>${a.id}</td>
<td>${a.title}</td>
<td> <img alt="" src="${a.pic}" height="50px" width="50px"> </td>
<td>${a.channel.name}</td>
<td>${a.category.name}</td>
<td>${a.context}</td>
</tr>
</c:forEach>
</table>
<a href="toAdd">添加</a>
<jsp:include page="/resource/common/pages.jsp"></jsp:include>
</form>
</body>
</html>